package com.piper.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * 路由地址配置类
 *
 * @author piper
 * @date 2018/7/4 13:20
 */
@Component
@ConfigurationProperties(prefix = "urlRoute")
public class UrlProperties {

    @Value("map")
    public static Map<String, String> map = new HashMap<>();

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }
}
